
using System;
using System.Runtime.InteropServices;

namespace Bioscrypt
{
    [StructLayout(LayoutKind.Sequential)]
    public struct BII_TEMPLATE
    {
        [MarshalAs(UnmanagedType.U4)]
        public int Id;

        [MarshalAs(UnmanagedType.U4)]
        public int Employee_Id;

        [MarshalAs(UnmanagedType.U4)]
        public int Password;

        public byte Sensor_Version;
        public byte Template_Version;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public byte[] Name;

        public byte Finger;
        public byte Admin_Level;
        public byte Schedule;
        public byte Security_Thresh;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 18)]
        public byte[] Noise_Level;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public byte[] Core_Stats;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public byte[] Core_Horizontal;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public byte[] Core_Vertical;

        public byte Temp_XOffset;
        public byte Temp_YOffset;
        public byte Index;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5500)]
        public byte[] Fingerprint_Data;
    }
}
